AuthenticationStatus

Entry point for inspecting the authentication state of a Messenger deployment.

Use shouldAuthorize before starting an authenticated chat to decide whether the host application needs to drive the OpenID authorization flow (for example, presenting a web-based login) or whether a previously stored authentication is still valid and the chat can be started immediately.

Functions

Link copied to clipboard
fun shouldAuthorize(context: Context, account: AccountInfo, callback: (Boolean) -> Unit)

Determines whether the host application should perform the authorization flow before starting a chat with the given account.